Package com.cisco.pt.ipc.sim.pdu.impl
Class Dot1qHeaderImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.HeaderImpl
com.cisco.pt.ipc.sim.pdu.impl.EthernetHeaderImpl
com.cisco.pt.ipc.sim.pdu.impl.Dot1qHeaderImpl
- All Implemented Interfaces:
IPCData,Dot1qHeader,EthernetHeader,Header,Pdu,Signal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Byteprotected Shortprotected Shortprotected Byteprotected ShortFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.EthernetHeaderImpl
dstMacAddress, frameCheckSequence, srcMacAddressFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.HeaderImpl
payloadFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getCfi()getFieldType(String fieldName) getTpid()voidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidvoidvoidsetTypeLength(Short typeLength) voidsetUserPriority(Byte userPriority) voidMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.EthernetHeaderImpl
getDstMacAddress, getFrameCheckSequence, getSrcMacAddress, setDstMacAddress, setFrameCheckSequence, setSrcMacAddressMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.HeaderImpl
getPayload, setPayloadMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.EthernetHeader
getDstMacAddress, getFrameCheckSequence, getSrcMacAddress, setDstMacAddress, setFrameCheckSequence, setSrcMacAddressMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Header
getPayload, setPayloadMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
tpid
-
userPriority
-
cfi
-
vlanId
-
typeLength
-
-
Constructor Details
-
Dot1qHeaderImpl
public Dot1qHeaderImpl()
-
-
Method Details
-
getTpid
- Specified by:
getTpidin interfaceDot1qHeader- Returns:
- Short Returns a Short
-
setTpid
- Specified by:
setTpidin interfaceDot1qHeader- Parameters:
tpid- Takes in a parameter of tpid
-
getUserPriority
- Specified by:
getUserPriorityin interfaceDot1qHeader- Returns:
- Byte Returns a Byte
-
setUserPriority
- Specified by:
setUserPriorityin interfaceDot1qHeader- Parameters:
userPriority- Takes in a parameter of userPriority
-
getCfi
- Specified by:
getCfiin interfaceDot1qHeader- Returns:
- Byte Returns a Byte
-
setCfi
- Specified by:
setCfiin interfaceDot1qHeader- Parameters:
cfi- Takes in a parameter of cfi
-
getVlanId
- Specified by:
getVlanIdin interfaceDot1qHeader- Returns:
- Short Returns a Short
-
setVlanId
- Specified by:
setVlanIdin interfaceDot1qHeader- Parameters:
vlanId- Takes in a parameter of vlanId
-
getTypeLength
- Specified by:
getTypeLengthin interfaceDot1qHeader- Returns:
- Short Returns a Short
-
setTypeLength
- Specified by:
setTypeLengthin interfaceDot1qHeader- Parameters:
typeLength- Takes in a parameter of typeLength
-
getFieldType
- Overrides:
getFieldTypein classEthernetHeaderImpl
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Overrides:
readin classEthernetHeaderImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-
pduRead
- Specified by:
pduReadin interfaceSignal- Overrides:
pduReadin classEthernetHeaderImpl
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classEthernetHeaderImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classEthernetHeaderImpl
-